﻿@model System.Web.Mvc.HandleErrorInfo

@{
    ViewBag.Title = "Error";
}

<hgroup class="title">
    <h1 class="error">Error.</h1>
    <h2 class="error">An error occurred while processing your request.</h2>

    @{

        if(1/*Request.IsLocal*/){
            
            if(@Model != null && @Model.Exception != null){
                <h3>Exception was: @Model.Exception.Message</h3>
                <h4>Stack trace: @Model.Exception.StackTrace</h4>
        
            } else {        
                <h3>Exception was null!</h3>
            }
        
        } else {
            <h4>Error has been reported to Administrator.</h4>
        }
            
    }
</hgroup>
